//
//  AFNManager.m
//  TFBase
//
//  Created by Liyadong on 2019/12/18.
//  Copyright © 2019 Liyadong. All rights reserved.
//

#import "AFNManager.h"

@implementation AFNManager

/**
 *  获得全局唯一的网络请求实例单例方法
 *
 *  @return 网络请求类的实例
 */
+(AFHTTPSessionManager *)shareManager {
    static AFHTTPSessionManager *manager=nil;
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        manager = [AFHTTPSessionManager manager];
    });
    return manager;
    
}


@end
